﻿namespace GerbilLib
{
    /// <summary>
    /// Wrapper class for the current assembly version information.
    /// </summary>
    public class Version
    {
        /// <summary>
        /// Returns the current assembly version number in the format
        /// Major.Minor.Build. Used to display the current version number
        /// on the MediaGerbil user interface.
        /// </summary>
        public static string Info
        {
            get
            {
                System.Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
                return string.Format("{0}.{1}.{2}", v.Major, v.Minor, v.Build);
            }
        }
    }
}
